//元素加载完成后触发
window.onload = function(){
	//鼠标接触触发
	
	
	
	            
	            
			
			
	document.getElementsByClassName("box")[0].onmousemove = function(){
		this.style.backgroundColor = 'red';
		this.style.color = "black";
		this.style.textAlign = "center";
		this.style.fontSize = "120px";
		this.style.lineHeight = "500px";
		this.style.transition = 'all 0.5s';
		this.style.width = (Math.random() * (1200 - 120) + 120)+"px";
		this.style.height = (Math.random() * (1200 - 120) + 120)+"px";
		this.style.borderRadius = "50%";
	}
	document.getElementsByClassName("box")[0].onmouseout = function(){
		this.style.backgroundColor = 'black';
		this.style.transition = 'all 0.5s';
		this.style.transform = "scale(0.5)";
		this.style.borderRadius = "0%";
	}
}